/*
 * IPCUids.h
 *
 *  Created on: 09/12/2013
 *      Author: gonzalo
 */

#ifndef IPCUIDS_H_
#define IPCUIDS_H_
#include <iostream>
#include "../common/ArchivoIni.h"

typedef std::string UidType;
typedef std::string Uid;


class IPCUids {
public:
	typedef enum{SIDE_SEND=0, SIDE_RECV}FileType;

	IPCUids();
	static bool error();
	static Uid getUid(std::string file, char key);
	static std::string getFile(Uid uid,bool alt=false);
	static char getKey(Uid uid);
	virtual ~IPCUids();
	static const std::string FILE_PATH;

private:
	std::string file;
	char key;
	std::string fileAlt;
	char keyAlt;
};

#endif /* IPCUIDS_H_ */
